﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SkinSharpCSNetDemo
{
    public partial class Form6 : Form
    {
        public Form6()
        {
            iFormCount = 1;
            InitializeComponent();
        }

        private void dropDownToolStripMenuItem14_Click(object sender, EventArgs e)
        {
            openFileDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem15_Click(object sender, EventArgs e)
        {
            saveFileDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem16_Click(object sender, EventArgs e)
        {
            folderBrowserDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem17_Click(object sender, EventArgs e)
        {
            fontDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem18_Click(object sender, EventArgs e)
        {
            colorDialog1.ShowDialog();
        }

        private void printPreviewDialogToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            printPreviewDialog1.ShowDialog();
        }

        public int iFormCount;
        private void NewWindow()
        {
            Form frmTemp = new Form();
            frmTemp.MdiParent = this;
            frmTemp.Text = "MDI ChildWindow" + iFormCount.ToString();
            iFormCount = iFormCount + 1;
            frmTemp.Show();
            frmTemp.Width++;
            frmTemp.Height++;
        }

        private void test1ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewWindow(); 
        }

        private void Form6_Load(object sender, EventArgs e)
        {
            NewWindow();
        }

        private void dropDownToolStripMenuItem14_Click_1(object sender, EventArgs e)
        {
            openFileDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem15_Click_1(object sender, EventArgs e)
        {
            saveFileDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem16_Click_1(object sender, EventArgs e)
        {
            folderBrowserDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem17_Click_1(object sender, EventArgs e)
        {
            fontDialog1.ShowDialog();
        }

        private void dropDownToolStripMenuItem18_Click_1(object sender, EventArgs e)
        {
            colorDialog1.ShowDialog();
        }

        private void printPreviewDialogToolStripMenuItem1_Click_1(object sender, EventArgs e)
        {
            printPreviewDialog1.ShowDialog();
        }

    }
}
